<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。    
	pageContext.setAttribute("basePath", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css"
	href="<%= basePath%>style/css/style.css" />
<script type="text/javascript" src="<%= basePath%>style/js/jquery.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/bootstrap.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/ckform.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/common.js"></script>
<script type="text/javascript" src="<%= basePath%>style/js/addOwner.js"></script>



<style type="text/css">
body {
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

.errorClass{
	display: inline;
	color: red;
}

@media ( max-width : 980px) {
	/* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>
</head>
<body>
	<form action="<%=path%>/rest/employee/editEmployee" method="post" class="definewidth m20"
	id="editEmployeeForm" name="editEmployeeForm"  >
		<table style="width: 750px;"  class="table table-bordered table-hover definewidth m10">
			<tr >
				<td  width="30%" class="tableleft" style="text-align: right">职称：</td>
				<td  width="70%"  >
				<select class="inputClass" name="eType" id="eType">
				<option value="11" >---请选择---</option>			    												
				    <option value="0" <c:if test="${employee.eType=='0' }"> selected="selected"</c:if>>人事</option>
					<option value="1" <c:if test="${employee.eType=='1' }"> selected="selected"</c:if>>行政</option>
					<option value="2" <c:if test="${employee.eType=='2' }"> selected="selected"</c:if>>客服</option>
					<option value="3" <c:if test="${employee.eType=='3' }"> selected="selected"</c:if>>前台</option>
					<option value="4" <c:if test="${employee.eType=='4' }"> selected="selected"</c:if>>资料员</option>
					<option value="5" <c:if test="${employee.eType=='5' }"> selected="selected"</c:if>>仓库管理员</option>
					<option value="6" <c:if test="${employee.eType=='6' }"> selected="selected"</c:if>>水电工</option>
					<option value="7" <c:if test="${employee.eType=='7' }"> selected="selected"</c:if>>门卫</option>
					<option value="8" <c:if test="${employee.eType=='8' }"> selected="selected"</c:if>>保洁</option>
					<option value="9" <c:if test="${employee.eType=='9' }"> selected="selected"</c:if>>保安</option>
				</select>
				<label class="errorClass" id="eTypeError" ></label></td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">姓名：</td>
				<td><input  class="inputClass" type="text" name="eName"   id="eName"  value="${employee.eName }"  readonly="readonly" />
				<label class="errorClass" id="eNameError" ></label></td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">性别：</td>
				<td><input type="radio" name="eSex" value="0"   readonly="readonly"  <c:if test="${employee.eSex=='0' }"> checked="checked"</c:if> /> 男 <input
					type="radio" name="eSex" value="1"  <c:if test="${employee.eSex=='1' }"> checked="checked"</c:if>/> 女</td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">身份证号：</td>
				<td><input class="inputClass"  type="text" name="eIdcard"  id="eIdcard"   readonly="readonly"  value="${employee.eIdcard }"/>
				<label class="errorClass" id="eIdcardError" ></label></td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">手机号：</td>
				<td><input class="inputClass"  type="text" name="eTell"   id="eTell" value = "${employee.eTell }"/>
				<label class="errorClass" id="eTellError"  ></label></td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">是否离职：</td>
				<td><input type="radio" name="eStatus" value="0"   <c:if test="${employee.eStatus=='0' }"> checked="checked"</c:if> />离职 <input
					type="radio" name="eStatus" value="1"  <c:if test="${employee.eStatus=='1' }"> checked="checked"</c:if>/> 在职</td>
			</tr>
			<tr>
				<td class="tableleft" style="text-align: right">备注：</td>
				<td><input class="inputClass"  type="text" name="eRemark"   id="eRemark"  value = "${employee.eRemark }"/>
				<label class="errorClass" id="eRemarkError"  ></label></td>
			</tr>
			<tr>
				<td class="tableleft"><input type="hidden"  name="eId"  id="eId"  value="${employee.eId }"/></td>
				<td>
					<button type="submit" class="btn btn-primary" type="button">确认修改</button>
					&nbsp;&nbsp;
					<button type="button" class="btn btn-success" name="backid"
						id="backid">返回列表</button>
				</td>
			</tr>
		</table>
	</form>
		<script type="text/javascript">
$(function () {       
	$('#backid').click(function(){
		top.topManager.closePage('${page_code}');
	 });

});
</script>
</body>
</html>
